﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using PEUtils;

namespace HotFix
{
    public class TestMono
    {
        public static void RunTest(GameObject go)
        {
            go.AddComponent<MonoTest>();
        }
        public static void RunTest2(GameObject go)
        {
            go.GetComponent<MonoTest>().Test() ;
        }
    }

    public class MonoTest : MonoBehaviour
    {
        void Awake()
        {
            PELog.InitSettings(new LogConfig() { loggerEnum = LoggerType.Unity });
            PELog.ColorLog(LogColor.Cyan, "MonoTest Awake" );
        }

        void Start()
        {
            PELog.ColorLog(LogColor.Cyan, "MonoTest Start");
        }

        void Update()
        {

        }

        public void Test()
        {
            PELog.ColorLog(LogColor.Cyan, "MonoTest Test");
        }
    }
}
